import com.hserver.deploy.utils.ShellUtil;
import org.junit.Test;

public class cmd {

    @Test
    public void javaCmdTest() throws Exception{
        System.out.println();
        ShellUtil.exec(s->{
            System.out.println(s);
        },"git");

//        System.out.println("----------");
//        String res=ShellUtil.exec(null,"git");
//        System.out.println(res);
    }

}
